﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OptixDotNet;

namespace RayDen.RayEngine.Addons.Optix
{
    public class OptixContext : IDisposable
    {
        public Context Context = null;

        public OptixContext()
        {
            Context = new Context {CpuNumThreads = 4, RayTypeCount = 1, EntryPointCount = 1, EnableAllExceptions = true};
        }



        public void Dispose()
        {
            if (Context != null)
            {
                Context.Dispose();

                Context = null;
            }
        }
    }
}
